module(..., package.seeall)

require "utils.oop"


Item = class("Item", Named)

function Item.__init(self, name, weight, volume)
    Named.__init(self, name)
    self.weight = weight or 1
    self.volume = volume or 1
end



Container = class("Container", Item)

function Container.__init(self, name, weight, volume)
    Item.__init(self, name)
    self.contents = list()
end

function Container.add(self, ...)
    for _, obj in ipairs{...} do
        self.contents:append(obj)
        self.weight 


